import { CpcBase, ICpcBaseIos } from "../../base/CpcBase";

const ios: ICpcBaseIos = {
    disableNextOutput: true,
    inputs: [
        {
            name: "result",
            type: 0,
            label: "返回结果",
        },
    ],
    outputs: [],
};

export class Response extends CpcBase {
    public title = "路由响应";

    public type = "Response";

    protected codeEditDbShow = true;

    protected codeEidtReadOnly = true;

    constructor(title?: string) {
        super(ios, title);
    }

    cpcRunCode(preDatas: any[], inputInfos: any[], outputInfos: any[]): any[] {
        console.log("路由响应打印输出", preDatas[0]);
        return preDatas;
    }
}
